package main

import (
	"gitee.com/simple-set/simple.proxy/src/utils"
	"log/slog"
)

func init() {
	utils.InitDaemon()
	utils.InitLogger()
}

func destroy() {
	utils.CloseLogger()
}

func main() {
	defer destroy()
	if err := NewServer().start(); err != nil {
		slog.Error("failed to start server " + err.Error())
	}
}
